Part Number Hot Search : 
1H474K LSJ507 39013 00400 D4033BM N6276A DZ11B 20M16
Product Description
Full Text Search
 

To Download LK204-25 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  LK204-25 technical manual revision: 2.0
contents contents ii 1 getting started 1 1.1 display options available . . ................................. 1 1.2 accessories . . . . . . ..................................... 2 1.3 features . ............................................ 6 1.4 connecting to a pc . . ..................................... 7 1.5 installing the software ..................................... 8 1.5.1 uproject . . . . ..................................... 8 2 hardware information 9 2.1 db-9 connector . . . . ..................................... 9 2.1.1 power through db-9 jumper ............................. 10 2.2 power/data connector ..................................... 10 2.3 protocol select jumpers ..................................... 11 2.4 general purpose outputs . . . ................................. 12 2.5 dallas 1-wire bridge . ..................................... 13 2.6 manual override . . . ..................................... 13 2.7 keypad interface connector . ................................. 14 3 troubleshooting 15 3.1 the display does not turn on when power is applied. ...................... 15 3.2 the display module is not communicating. . . . . . ...................... 16 3.3 the display module is communicating, however text cannot be displayed. . . . ....... 16 4 communications 16 4.1 introduction . . . . . . ..................................... 16 4.1.1 i 2 c communication summary ............................. 16 4.1.2 serial communication ................................. 17 4.2 changing the i 2 c slave address . . . ............................. 18 4.3 changing the baud rate . . . ................................. 18 4.4 setting a non-standard baud rate . . ............................. 19 5 text 20 5.1 introduction . . . . . . ..................................... 20 5.1.1 character set . ..................................... 21 5.1.2 control characters . . ................................. 21 5.2 auto scroll on . . . . ..................................... 21 5.3 auto scroll off . . . . ..................................... 22 5.4 clear screen . . . . . . ..................................... 22 5.5 changing the startup screen . ................................. 22 5.6 set auto line wrap on ..................................... 23 5.7 set auto line wrap off ..................................... 23 5.8 set cursor position . . ..................................... 23 matrix orbital LK204-25 ii
5.9 go home ............................................ 24 5.10 move cursor back . . ..................................... 24 5.11 move cursor forward . ..................................... 24 5.12 underline cursor on . ..................................... 25 5.13 underline cursor off . ..................................... 25 5.14 blinking block cursor on . . ................................. 25 5.15 blinking block cursor off . . ................................. 25 6 special characters 26 6.1 introduction . . . . . . ..................................... 26 6.2 creating a custom character . ................................. 26 6.3 saving custom characters . . ................................. 27 6.4 loading custom characters . ................................. 28 6.5 save startup screen custom characters . . . . . . ...................... 28 6.6 initialize medium number . . ................................. 29 6.7 place medium numbers . . . ................................. 29 6.8 initialize large numbers . . . ................................. 29 6.9 place large number . ..................................... 30 6.10 initialize horizontal bar . . . ................................. 30 6.11 place horizontal bar graph . . ................................. 30 6.12 initialize narrow vertical bar . ................................. 31 6.13 initialize wide vertical bar . . ................................. 31 6.14 place vertical bar . . . ..................................... 32 7 general purpose output 32 7.1 introduction . . . . . . ..................................... 32 7.2 general purpose output off . ................................. 32 7.3 general purpose output on . . ................................. 33 7.4 set startup gpo state . ..................................... 33 8 dallas 1-wire 34 8.1 introduction . . . . . . ..................................... 34 8.2 search for a 1-wire device . . ................................. 34 8.3 dallas 1-wire transaction . . ................................. 35 9 keypad 36 9.1 introduction . . . . . . ..................................... 36 9.1.1 i2c interface . ..................................... 37 9.1.2 rs232 interface . . . ................................. 37 9.2 auto transmit key presses on ................................. 37 9.3 auto transmit key presses off ................................. 37 9.4 poll key press . . . . . ..................................... 38 9.5 clear key buffer . . . ..................................... 38 9.6 set debounce time . . ..................................... 39 9.7 set auto repeat mode ..................................... 39 9.8 auto repeat mode off ..................................... 40 9.9 assign keypad codes . ..................................... 40 matrix orbital LK204-25 iii
10 display functions 41 10.1 introduction . . . . . . ..................................... 41 10.2 display on . . . . . . ..................................... 41 10.3 display off . . . . . . ..................................... 42 10.4 set brightness . . . . . ..................................... 42 10.5 set and save brightness ..................................... 42 10.6 set contrast . . . . . . ..................................... 42 10.7 set and save contrast . ..................................... 43 11 data security 43 11.1 introduction . . . . . . ..................................... 43 11.2 set remember . . . . . ..................................... 44 11.3 data loc k............................................ 44 11.4 set and save data lock ..................................... 45 12 miscellaneous 46 12.1 introduction . . . . . . ..................................... 46 12.2 read version number . ..................................... 46 12.3 read module type . . ..................................... 46 13 command summary 47 13.1 communications . . . ..................................... 47 13.2 text . . . ............................................ 48 13.3 special characters . . ..................................... 49 13.4 general purpose output ..................................... 50 13.5 dallas 1-wire . . . . . ..................................... 50 13.6 keypad . ............................................ 50 13.7 display functions . . . ..................................... 51 13.8 data security . . . . . ..................................... 51 13.9 miscellaneous . . . . . ..................................... 51 13.10command by number ..................................... 52 14 appendix 53 14.1 speci?ations . . . . . ..................................... 53 14.1.1 environmental ..................................... 53 14.1.2 electrical . . . ..................................... 54 14.2 optical characteristics ..................................... 54 14.3 physical layout . . . . ..................................... 55 14.4 de?itions ............................................ 56 14.5 contacting matrix orbital . . . ................................. 56 matrix orbital LK204-25 iv

1.2 accessories note matrix orbital provides all the interface accessories needed to get your display up and running. you will ?d these accessories and others on our e-commerce website at http://www.matrixorbital.com. to contact a sales associate see section 14.5 on page 56 for contact information. figure 2: 5v power cable adapter figure 3: 12v power cable adapter (v/vpt models) matrix orbital LK204-25 2
figure 4: breadboard cable figure 5: serial cable 4ft matrix orbital LK204-25 3
figure 6: communication and 5v power cable figure 7: aluminum mountings matrix orbital LK204-25 4
figure 8: keypad mountings figure 9: mounting kits matrix orbital LK204-25 5
figure 10: 4x4 keypad 1.3 features ? 20 column by 4 line alphanumeric liquid crystal display ? selectable communication protocol, rs-232 or i 2 c ? one-wire interface ? six, 5v -20ma, general purpose outputs for a variety of applications ? lightning fast communication speeds, up to 57.6 kbps for rs-232 and 400 kbps for i 2 c ? default 19.2 kbps serial communication speed ? extended temperature available for extreme environments of -20c to 70c ? extended voltage and ef?ient power supply available ? built in font with provision for up to 8 user de?ed characters ? use of up to 127 modules on the same 2 wire i 2 c interface ? 1-wire bus that is capable of communicating with up to 32 devices over a single bus ? fully buffered so that no delays in transmission are ever necessary ? ability to add a customized splash / startup screen ? software controlled contrast and brightness with con?urable time-out setting up to 90 minutes ? use of up to a 25 key keypad with a 10 key buffer ? horizontal or vertical bar graphs ? extended temperature option ? fits matrix orbitals mountings without any modi?ations matrix orbital LK204-25 6
1.4 connecting to a pc the LK204-25 connects seamlessly to a pc and it is an excellent means of testing the functionality. to connect your display to a pc, you will require a standard rs-232 9-pin serial cable such as the one pictured in ?ure 5 on page 3 , as well as a modi?d 5v power adapter such as the one pictured in ?ure 2 on page 2 . in order to connect your display to a personal computer follow these easy instructions: 1. plug the serial cable into the com port you wish to use. 2. connect the modi?d 5v power adapter to a power lead from your pc power supply (you will have to open your computer case). 3. connect the serial cable to the db-9 connector on the back of the display. 4. connect the 5v power adapter to the 4-pin connector on the back of the display. warning do not use the standard ?ppy drive power connector, as this will not provide you with the correct voltage and will damage the display module. figure 11: pc vs matrix orbital display module wiring matrix orbital LK204-25 7
1.5 installing the software 1.5.1 uproject uproject was designed by matrix orbital to provide a simple and easy to use interface that will allow you to test all of the features of our alpha numeric displays. to install uproject from the matrix orbital cd, follow the following steps: 1. insert the matrix orbital cd-rom into the cd drive 2. locate the ?e, uproject.exe , which should be in the ?d-drive:\download directory. 3. copy uproject.exe to a directory that you wish to run it from. 4. double click on "uproject.exe" be sure to check the information selected in the com setup the ?st time uproject is run. once this infor- mation is entered correctly the program can be used to control all functions of the graphic display. comport the serial port the display is plugged in to. baudrate the communication speed the display module is set to. (default 19,200) figure 12: uproject settings notes ? uproject and other alphanumeric software may also be downloaded from matrix or- bitals support site at http://www.matrixorbital.ca/software/software_alpha/ matrix orbital LK204-25 8
2 hardware information refer to the following diagram for this chapter: 1 db-9 connector 5 power / data connector 2 power through db9 jumper 6 keypad interface 3 gpos 7 protocol select jumpers 4 manual override 8 optional dallas 1-wire bridge figure 13: LK204-25 2.1 db-9 connector the LK204-25 provides a db-9 connector to readily interface with serial devices which use the eia232 standard signal levels of 12v to 12v. it is also possible to communicate at ttl levels of 0 to +5v by setting the protocol select jumpers to ttl. as an added feature it is also possible to apply power through pin 9 of the db-9 connector in order to reduce cable clutter. however, in order to accomplish this you must set the power through db-9 jumper . matrix orbital LK204-25 9
pin 2 rx \ scl (i 2 c clock) pin 3 tx \ sda (i 2 c data) pin 5 gnd pin 9 pwr (must solder power through db- 9 jumper. see table 1 on the next page for power requirements.) figure 14: rs-232 pin out 2.1.1 power through db-9 jumper in order to provide power through pin 9 of the db-9 connector you must place a solder jumper on the power through db-9 jumper pictured in ?ure 15 below. the LK204-25 allows all voltage models to use the power through db-9 option, see table 1 on the following page for display module voltage requirements. figure 15: power through db-9 jumper warning do not apply voltage through pin 9 of the db-9 connector and through the power/data connector at the same time. 2.2 power/data connector the power/data connector provides a standard connector for powering the display module. the lk204- 25 requires ve volts for the standard display module, between nine to ?teen for the wide voltage (v) and between nine to thirty-ve volts for the wide voltage with ef?ient power supply module (vpt). the voltage is applied through pins one and four of the four pin power/data connector . pins two and three are reserved for serial transmission, using either the rs-232/ttl or the i 2 c protocol, depending on what has been selected by the protocol select jumpers . matrix orbital LK204-25 10
pin 1 pwr (see table 1) pin 2 rx \ scl (i 2 c clock) pin 3 tx \ sda (i 2 c data) pin 4 gnd figure 16: power connector and pin out table 1: power requirements standard -v -vpt supply voltage +5vdc 0.25v +9v to +15v +9v to +35v backlight on 110 ma typical backlight off supply 40 ma warnings ? do not apply any power with reversed polarization. ? do not apply any voltage other than the speci?d voltage. 2.3 protocol select jumpers the protocol select jumpers , pictured below in ?ure 17 , provide the means necessary to toggle the display module between rs-232, ttl and i 2 c protocols. as a default, the jumpers are set to rs-232 mode with solder jumps on the 232 jumpers. in order to place the display module in i 2 c mode you must ?st remove the solder jumps from the 232 jumpers and then place them on the i2c jumpers. the display will nowbeini 2 c mode and have a default slave address of 0x50 unless it has been changed. similarly, in order to change the display to ttl mode, simply remove the zero ohm resistors from the 232 or i 2 c jumpers and solder them to the ttl jumpers. matrix orbital LK204-25 11
figure 17: protocol select jumpers 2.4 general purpose outputs a unique feature of the LK204-25 is the ability to control relays and other external devices using a general purpose output , which can provide up to 20 ma of current and +5vdc from the positive side of the gpo. this is limited by a 240 ohm resistor which is located to the above right of the gpos as pictured below in ?ure 21 . if the device, which is being driven by a gpo, requires a relatively high current (such as a relay) and has an internal resistance of its own greater than 250 ohms, then the 240 ohm resistor may be removed and replaced with a jumper. - gnd + max: 20 ma, +5vdc figure 18: general purpose output warning if connecting a relay, be sure that it is fully clamped using a diode and capacitor in order to absorb any electro-motive force (emf) which will be generated. matrix orbital LK204-25 12
2.5 dallas 1-wire bridge in addition to the six general purpose outputs the LK204-25 offers an optional dallas 1-wire bridge, to allow for an aditional thirty two 1-wire devices to be connected to the display. please note that the display normally does not come with the dallas 1-wire bridge. it will have to be ordered as a custom. please talk to your sales representative if you would like this option. see section 8 on page 34 . figure 19: dallas 1-wire bridge 2.6 manual override the manual override is provided to allow the LK204-25 to be reset to factory defaults. this can be particularly helpful if the display module has been set to an unknown baud rate or i 2 c slave address and you are no longer able to communicate with it. if you wish to return the module to its default settings you must: 1. power off the display module. 2. place a jumper on the manual override pins. 3. power up the display module. 4. the display module is now set to its default values listed below in table 2 . 5. edit and save settings. matrix orbital LK204-25 13
figure 20: manual override jumper table 2: default values brightness 255 baud rate 19.2 kbps i 2 c slave address 0x50 data lock false rs232autotransmitdata true note the display module will revert back to the old settings once turned off, unless the settings are saved. 2.7 keypad interface connector the LK204-25 provides a keypad interface connector which allows for up to a ve by ve matrix style keypad to be directly connected to the display module. key presses are generated when a short is detected between a row and a column. when a key press is generated a character, which is associated with the particular key press, is automatically sent on the tx communication line. if the display module is running in i 2 c mode, the auto transmit keypress function may be turned off, to allow the key presses to remain in the buffer so that they may be polled. the character that is associated with each key press may also be altered using the assign key codes command, for more detailed information see the keypad section, on page 36 . matrix orbital LK204-25 14
figure 21: keypad interface connector note the ground / +5v pin is toggled by the jumper to the right of the keypad connec- tor.jump1&2for+5vor2&3for gnd. 3 troubleshooting 3.1 the display does not turn on when power is applied. ? first, you will want to make sure that you are using the correct power connector. standard ?ppy drive power cables from your pc power supply may ? on the power/data connector however they do not have the correct pin out as can be seen in ?ure 11 on page 7 . matrix orbital supplies power cable adapters for connecting to a pc, which can be found in the accessories section on page 2 . ? the next step is to check the power cable which you are using for continuity. if you dont have an ohm meter, try using a different power cable, if this does not help try using a different power supply. ? the last step will be to check the power / data connector on the LK204-25. if the power / data connector has become loose, or you are unable to resolve the issue, please contact matrix orbital, see 14.5 on page 56 for contact information. matrix orbital LK204-25 15
3.2 the display module is not communicating. ? first, check the communication cable for continuity. if you dont have an ohm meter, try using a different communication cable. if you are using a pc try using a different com port. ? second, please ensure that the display module is set to communicate on the protocol that you are using, by checking the protocol select jumpers. to change the protocol used by the display module see section 2.3 on page 11 . ? third, ensure that the host system and display module are both communicating on the same baud rate. the default baud rate for the display module is 19200 bps. ? if you are communicating to the display via i 2 c please ensure that the data is being sent to the correct address. the default slave address for the display module is 0x50. note i 2 c communication will always require pull up resistors. ? finally, you may reset the display to its default settings using the manual override jumper , see section 2.6 on page 13 . 3.3 the display module is communicating, however text cannot be displayed. ? a common cause may be that the contrast settings have been set to low. the solution to this problem is to adjust the contrast settings. the default setting that will work in most environments is 128. note optimal contrast settings may vary according to factors such as temperature, view- ing angle and lighting conditions. if you are unable to resolve any issue please contact matrix orbital. see 14.5 on page 56 for contact information. 4 communications 4.1 introduction the commands listed in this chapter describe how to con?ure data ?w on the rs232/ttl and i 2 c port. 4.1.1 i 2 c communication summary the LK204-25 is capable of communicating at 100 kbps in i 2 c mode, with 127 units addressable on a single i 2 c communication line. however, in order to communicate via i 2 c you must ?st set the protocol select jumpers as can be seen in section 2.3 and ensure that pull up resistors, with a nominal value of 1k to 10k, are placed on the scl sda communication lines coming from pins two and three of the data / matrix orbital LK204-25 16
power connector respectively. these pins are shared with rs232 and must be switched to i2c if this is how the host will be communicating with the display. data responses by the module are automatically output via rs232, in case the host will be querying the module, it is necessary for the host to inform the module that its responses are to be output via i2c. this can be done by sending command 254 /160 / 0 to turn off auto transmission of data in rs232. this will keep the data in the buffer until the master clocks a read of the slave. the i2c data lines operate at 5v. the LK204-25 uses 8-bit addressing, with the 8th or least signi?ant bit (lsb) bit designated as the read/write bit, a 0 designates a write address and a 1 designates a read address. the default read address of the display module will be 0x51, whereas the write address is 0x50 by default. this address may be changed by using cmd 254 / 51 /
. the LK204-25should only be sent addresses that are even (lsb is 0). when the i2c master wishes to write to the display, the effective address is $50 (0101 0000) , since the lsb has to be 0 for an i2c master write. when the i2c master wishes to read the LK204-25, the effective address is $51 (0101 0001), since the lsb has to be 1 for an i2c master read. if we take a standard phillips 7 bit address of $45 (100 0101), matrix orbitals LK204-25 would describe this phillips i2c address as $8a (1000 1010). the read address would be $8b (1000 1011). the unit does not respond to general call address ($00). when communicating in i 2 c the LK204-25 will send an ack on the 9th clock cycle when addressed. when writing to the display module, the display will respond with a ack when the write has successfully been completed. however if the buffer has been ?led, or the module is too busy processing data it will respond with a nak. when performing a multiple byte read within one i 2 c transaction, each byte read from the slave should be followed by an ack to indicate that the master still needs data, and a nak to indicate that the transmission is over. the LK204-25 has some speed limitations, especially when run in i2c mode. here are some considera- tions when writing i2c code: * to be able to read the replies of query commands (eg. cmds 54, 55) the following command must be sent (only needs to be sent once, so this can be done somewhere in init): 254 / 160 / 0 this command puts the reply data in the i2c output buffer instead of the rs232 output buffer. please note that due to a 16 byte output buffer, query commands that reply with more than 16 bytes cannot be read (eg cmd get filesystem directory) * 3ms delay between the read commands * 625us delay in between data bytes within a transaction is necessary * 375us between transactions is necessary because of the considerable amount of delays necessary for i2c, it is suggested that the users explore the possibility of using other built in graphic commands to clear areas of the display when refreshing all or part of the display. for example, instead of sending the clear screen command, consider sending a rectangle command with the proper size, this is much faster than clearing everything and re-drawing or writing spaces over the area. 4.1.2 serial communication in addition to being able to communicate via i 2 c the LK204-25 communicates natively through the rs- 232 protocol at a default baud rate of 19,200 bps and is capable of standard baud rates from 1200 to 115,200 bps. furthmore the LK204-25 is also capable of reproducing any non-standard baud rate in between using values entered into our baud rate generation algorithm and set through command 164 (0xa4). the display module communicates at standard voltage levels of 12v to 12v or at ttl levels of 0 to +5v by setting matrix orbital LK204-25 17
the protocol select jumpers to ttl. 4.2 changing the i 2 c slave address syntax hexadecimal 0xfe 0x33 [adr] decimal 254 51 [adr] ascii 254 ? [adr] parameters parameter length description adr 1 the new i 2 c write address (0x00 - 0xff). description this command sets the i 2 c write address of the module between 0x00 and 0xff. the i 2 c write address must be an even number and the read address is automatically set to one higher. for example if the i 2 c write address is set to 0x50, then the read address is 0x51. note the change in address is immediate. remembered always default 0x50 4.3 changing the baud rate syntax hexadecimal 0xfe 0x39 [speed] decimal 254 57 [speed] ascii 254 ? [speed] parameters parameter length description speed 1 hex value corresponding to a baud rate. matrix orbital LK204-25 18
description this command sets the rs-232 port to the speci?d [speed]. the change takes place immediately. [speed] is a single byte specifying the desired port speed. valid speeds are shown in the table below. the display module can be manually reset to 19,200 baud in the event of an error during transmission, including transmitting a value not listed below, by setting the manual override jumper during power up. however, it should be noted that this command will be ignored until the manual override jumper is removed again. hex value baud rate 53 1200 29 2400 cf 4800 67 9600 33 19200 22 28800 19 38400 10 57600 note this command is not available in i2c mode. remembered always default 19,200 bps 4.4 setting a non-standard baud rate syntax hexadecimal 0xfe 0xa4 [speed] decimal 254 164 [speed] parameters parameter length description speed 2 inputed lsb msb from baud rate formula (12-2047). description this command sets the rs-232 port to a non-standard baud rate. the command accepts a two byte parameter that goes directly into the modules baud generator. use the formula, speed = crystalspeed 8 desiredbaud ? 1to calculate the [speed] for any baud rate setting. the speed can be anywhere from 12 to 2047 which corresponds to a baud range of 977 to 153,800 baud. setting the baud rate out of this range could cause the display to stop working properly and require the manual override jumper to be set. remembered always matrix orbital LK204-25 19
examples crystal speed 16 mhz desired baud 13,500 speed = crystalspeed 8 ? desiredbaud ? 1 speed = 148 . 15 ? 1 speed = 16 , 000 , 000 8 ? 13 , 500 ? 1 speed = 147 . 15 ? lsb = 0x93 (rounded) ? msb = 0x00 ? intended baud rate: 13,500 baud actual baud rate: 16 , 000 , 000 8 ( 147 + 1 ) = 13,514 percent difference: 0.1% notes ? results from the formula are rounded down to the nearest whole number (i.e 73.07 = 73). ? this formula becomes less acurate as baud rates increase, due to rounding. ? place the speed result backwards into the formula to receive the actual baud rate. ( baud = crystalspeed 8 ( speed + 1 ) ) ? the actual baud rate must be within 3% of the intended baud rate for the device to communicate. ? this command is not available in i2c mode. 5text 5.1 introduction the LK204-25 is an intelligent display module, designed to reduce the amount of code necessary to begin displaying data. this means that it is able to display all characters and strings that are sent to it, which are de?ed in the current character set. the display module will begin displaying text at the top left corner of the display area, known as home, and continue to print to the display as if it was a page on a typewriter. when the text reaches the bottom right row, it is able to automatically scroll all of the lines up and continue to display text, with the auto scroll option set to on. matrix orbital LK204-25 20
5.1.1 character set figure 22: character set 5.1.2 control characters 0x08 backspace 0x0c clear screen / new page 0x0d carriage return 0x0a line feed / new line 5.2 auto scroll on matrix orbital LK204-25 21
syntax hexadecimal 0xfe 0x51 decimal 254 81 ascii 254 ? description when auto scrolling is on, it causes the display to shift the entire displays contents up to make room for a new line of text when the text reaches the end of the last row. remembered yes default on 5.3 auto scroll off syntax hexadecimal 0xfe 0x52 decimal 254 82 ascii 254 ? description when auto scrolling is disabled the text will wrap to the top left corner of the display area when the text reaches the end of last row. remembered yes 5.4 clear screen syntax hexadecimal 0xfe 0x58 decimal 254 88 ascii 254 ? description this command will immediately clear all of the contents of the display. remembered no 5.5 changing the startup screen syntax hexadecimal 0xfe 0x40 [chars] decimal 254 64 [chars] ascii 254 ? [chars] parameters parameter length description chars 80 characters to display for the startup screen. description in order to change the text that is displayed by the LK204-25 when it starts up simply send the command bytes 254 64 followed by the characters that you wish to display, starting from the top left. this command will automatically line wrap the characters that are sent to it. matrix orbital LK204-25 22
remembered yes 5.6 set auto line wrap on syntax hexadecimal 0xfe 0x43 decimal 254 67 ascii 254 ? description enabling auto line wrap will allow the cursor to automatically wrap over to the next line when the current line is full. note line wraps may occur in the middle of a word. remembered yes 5.7 set auto line wrap off syntax hexadecimal 0xfe 0x44 decimal 254 68 ascii 254 ? description disabling auto line wrap will allow you to have full control over the cursor position. this means that once the cursor has advanced to the end of a line, it will not wrap over to the next line, unless given the ?et cursor position command. note all characters written to the display past the end of a line will be lost. remembered yes 5.8 set cursor position syntax hexadecimal 0xfe 0x47 [col] [row] decimal 254 71 [col] [row] ascii 254 ? [col] [row] parameters parameter length description col 1 column row 1 row matrix orbital LK204-25 23
description this command will allow you to manually set the cursor position, which controls the text insertion point, by specifying the [col] and [row] of the new proposed cursor position. note if the cursor position is set past the end of a line it will wrap to the beginning of the next line. remembered no 5.9 go home syntax hexadecimal 0xfe 0x48 decimal 254 72 ascii 254 ? description this command will return the cursor to the top left corner of the display area, identi?d as row one, column one. remembered no 5.10 move cursor back syntax hexadecimal 0xfe 0x4c decimal 254 76 ascii 254 ? description this command will move the cursor back one space. if this command is sent when the cursor is at the home position the cursor will wrap to the last row / column position if line wrap is on. sending this command will not effect the text displayed on the module, however any characters that are sent will over write the current characters that are being displayed. remembered no 5.11 move cursor forward syntax hexadecimal 0xfe 0x4d decimal 254 77 ascii 254 ? matrix orbital LK204-25 24
description this command will move the cursor forward one space. if this command is sent when the cursor is at the bottom right position the cursor will wrap back to the home position if line wrap is on. sending this command will not effect the text displayed on the module, however any characters that are sent will over write the current characters that are being displayed. remembered no 5.12 underline cursor on syntax hexadecimal 0xfe 0x4a decimal 254 74 ascii 254 ? description this command will cause the LK204-25 to display an underline cursor at the current text insertion point. remembered yes 5.13 underline cursor off syntax hexadecimal 0xfe 0x4b decimal 254 75 ascii 254 ? description this command will turn the the underline cursor off. remembered yes 5.14 blinking block cursor on syntax hexadecimal 0xfe 0x53 decimal 254 83 ascii 254 ? description this command will cause the LK204-25 to display an underline cursor at the current text insertion point. remembered yes 5.15 blinking block cursor off matrix orbital LK204-25 25
syntax hexadecimal 0xfe 0x54 decimal 254 84 ascii 254 ? description this command will turn the block cursor off. remembered yes 6 special characters 6.1 introduction 6.2 creating a custom character syntax hexadecimal 0xfe 0x4e [refid] [data] decimal 254 78 [refid] [data] ascii 254 ? [refid] [data] parameters parameter length description refid 1 character reference id (0-7). data 8 character data. matrix orbital LK204-25 26
description the LK204-25 allows for upta to eight custom de?ed characters to be added onto the the character set. a custom character is a ve by eight pixel matrix with each row represented by a byte value. for example: custom character ?h? decimal hex 1 0 0 0 0 16 0x10 1 0 0 0 0 16 0x10 1 0 0 0 0 16 0x10 1 0 0 0 0 16 0x10 1 0 1 1 0 22 0x16 1 1 0 0 1 25 0x19 1 0 0 0 1 17 0x11 1 0 0 0 1 17 0x11 each bit value of one, in the table, represents an on pixel, whereas a value of zero represents a pixel that is turned off. therefore in order to de?e custom character ? you would send the command byte pre? 254 fol- lowed by the command 78. next, you will have to select the memory location in which you wish to save the character in. the available mem- ory locations for this command are zero through to seven. after sending the memory location, or [refid], you may then send the eight byte custom character data in sequence from the top to the bottom. once you have de?ed a custom character you may display it by sending the display module the [refid]. for example if a custom character was saved in position one, the command to display the custom character, at the current cursor position, would be simply to send the number one to the display module without quotes. remembered no 6.3 saving custom characters syntax hexadecimal 0xfe 0xc1 [bank] [id] [data] decimal 254 193 [bank] [id] [data] parameters parameter length description bank 1 memory bank to save to (0-4). id 1 character id (0-7) data 8 character de?ition matrix orbital LK204-25 27
description new to the LK204-25 has added ve non-volatile memory banks for custom character storage. this is intended to allow you to create your own custom bar graphs, medium/large numbers and startup screen. however, each memory bank may be used to store a set of any eight custom characters; with the only provision being that memory bank zero contains the characters that will be used in the startup screen. by default the memory banks will be loaded as follows: [bank] description 0 startup screen characters. 1 horizontal bars 2 vertical bars 3 medium numbers 4 large numbers in order to save new custom characters into a memory bank, fol- low the same process as you would for creating a custom character, see section 6.2 on page 26, only use 254 193 [bank number] before sending the [id] and character [data]. remembered yes 6.4 loading custom characters syntax hexadecimal 0xfe 0xc0 [bank] decimal 254 192 [bank] parameters parameter length description bank 1 memory bank to save to (0-4). description this command is used to load the custom characters into the volatile memory so that they may be used. if custom bar graph or number characters are stored in the memory banks, this command may be used instead of initializing the bar graph / number. to use this command send the command bytes followed by the [bank] that contains the custom character data that you want to retrieve. remembered no 6.5 save startup screen custom characters syntax hexadecimal 0xfe 0xc2 [refid] [data] decimal 254 194 [refid] [data] parameters parameter length description refid 1 character reference id (0-7). data 8 character data. matrix orbital LK204-25 28
description using this command you may create the custom characters. that will be stored in memory bank zero, which will be used in the startup screen. for more information about creating custom characters see section 6.2 on page 26 . notes ? changes only take place once the power has been cycled. ? this command is the same as sending cmd 254 / 193 / 0 / [id] / [data] remembered yes 6.6 initialize medium number syntax hexadecimal 0xfe 0x6d decimal 254 109 ascii 254 ? description this command will load the default medium number characters into the volatile memory. if you have stored your own custom medium numbers, use the ?oad custom characters command to load your custom character data into the volatile memory. this command will allow you to use the ?lace medium numbers command. remembered no 6.7 place medium numbers syntax hexadecimal 0xfe 0x6f [row] [col] [digit] decimal 254 111 [row] [col] [digit] ascii 254 ? [row] [col] [digit] parameters parameter length description row 1 the row number. col 1 the column number. digit 1 medium number to place (0-9). description this command will place a medium number (two columns high) at the [row] and [col] speci?d. remembered no 6.8 initialize large numbers matrix orbital LK204-25 29
syntax hexadecimal 0xfe 0x6e decimal 254 110 ascii 254 ? description this command will load the default large number characters into the volatile memory. if you have stored your own custom large numbers, use the ?oad custom characters command instead to load your custom character data into the volatile memory. this command will allow you to use the ?lace large numbers command. remembered no 6.9 place large number syntax hexadecimal 0xfe 0x23 [col] [digit] decimal 254 35 [col] [digit] ascii 254 ? [col] [digit] parameters parameter length description col 1 the column number. digit 1 large number to place (0-9). description this command will place a large number (four columns high) at the [row] and [col] speci?d. remembered no 6.10 initialize horizontal bar syntax hexadecimal 0xfe 0x68 decimal 254 104 ascii 254 ? description this command will load the default horizontal bar characters into the volatile memory. if you have stored your own custom horizontal bar data, use the ?oad custom characters command instead to load your custom bar data into the volatile memory. this command will allow you to use the ?lace horizontal bar command. remembered no 6.11 place horizontal bar graph syntax hexadecimal 0xfe 0x7c [col] [row] [dir] [length] decimal 254 124 [col] [row] [dir] [length] ascii 254 ? [col] [row] [dir] [length] matrix orbital LK204-25 30
parameters parameter length description col 1 the column number. row 1 the row number. dir 1 the direction of the bar data (0 or 1). length 1 the length of the bar data. description this command will place a bar graph at [row], [column]. a [dir] value of zero will cause the bar to go right, and one will cause the bar to go left. the [length] is the size in pixels of the bar graph. note bar graphs may be one directional only. remembered no 6.12 initialize narrow vertical bar syntax hexadecimal 0xfe 0x73 decimal 254 115 ascii 254 ? description this command will load the narrow vertical bar characters into the volatile memory. if you have stored your own custom vertical bar data, use the ?oad custom characters command instead to load your custom bar data into the volatile memory. this command will allow you to use the ?lace vertical bar command. note narrow bars have a width of two pixels. remembered no 6.13 initialize wide vertical bar syntax hexadecimal 0xfe 0x76 decimal 254 118 ascii 254 ? matrix orbital LK204-25 31
description this command will load the wide vertical bar characters into the volatile memory. if you have stored your own custom vertical bar data, use the ?oad custom characters command instead to load your custom bar data into the volatile memory. this command will allow you to use the ?lace vertical bar command. note wide bars have a width of ve pixels. remembered no 6.14 place vertical bar syntax hexadecimal 0xfe 0x3d [column] [length] decimal 254 61 [column] [length] ascii 254 ? [column] [length] parameters parameter length description column 1 the column number. length 1 the length of the bar data. description this command will place a bar graph at the speci?d [column] with the speci?d [length]. the [length] is the size in pixels of the bar graph. note bar graphs may be one directional only. remembered no 7 general purpose output 7.1 introduction general purpose outputs allow you to connect devices, such as leds, to the LK204-25 and supply them with up to 20ma of current at 5v. the LK204-25 has 6 gpos which are software controlled, with functions to turn them on/off and set the power state for the next startup. 7.2 general purpose output off syntax hexadecimal 0xfe 0x56 [num] decimal 254 86 [num] ascii 254 ? [num] matrix orbital LK204-25 32
parameters parameter length description num 1 gpo number. description this command turns off general purpose output [num]. note off means that the output is ground. remembered yes 7.3 general purpose output on syntax hexadecimal 0xfe 0x57 [num] decimal 254 87 [num] ascii 254 ? [num] parameters parameter length description num 1 gpo number. description this command turns on general purpose output [num]. the standard gpos on the LK204-25 output 20ma of current at 5v. note the output is pulled high. remembered yes 7.4 set startup gpo state syntax hexadecimal 0xfe 0xc3 [num] [state] decimal 254 195 [num] [state] parameters parameter length description num 1 gpo number. state 1 startup state (0: off, 1: on) description this command will set the startup state for the gpo on the next power up. a value of one will cause the gpo to be off on the next startup while a value of one will cause the gpo to be on. note this command does not affect the current state of the gpo. remembered always matrix orbital LK204-25 33
8 dallas 1-wire 8.1 introduction another convenient feature of the LK204-25 is that it provides a dallas 1-wire interface in order to readily communicate with up to thirty two 1-wire devices on a single bus. 1-wire communication is begun by discovering the address of the device that you wish to communicate with. to do this you must send the ?earch for a 1-wire device command. after you have established the address of the device that you wish to communicate with, you may begin a transaction with the device 8.2 search for a 1-wire device syntax hexadecimal 0xfe 0xc8 0x2 decimal 254 200 2 description this command will allow you to begin communicating with the devices on the 1-wire bus by returning a packet containing device information for each 1-wire device on the bus in the form of: search return packet offset (bytes) offset (bytes) description 0 2 0x232a preamble 2 1 0x8a packet is 10 bytes long, an- other address will follow 0x0a packet is 10 bytes long, this is the last address 3 1 0x31 - 1-wire packet type 4 1 error code (0x00 for success) 5 8 1-wire address 13 1 crc8 0x00 means the last address was valid remembered no matrix orbital LK204-25 34
8.3 dallas 1-wire transaction syntax hexadecimal 0xfe 0xc8 0x1 [?gs] [sndbits] [rcvbits] [data] decimal 254 200 1 [?gs] [sndbits] [rcvbits] [data] parameters parameter length description ?gs 1 flags to control optional components of the transaction. sndbits 1 the number of bits you will be transmitting on the bus. rcvbits 1 the number of bits you will be reading on the bus. data variable data to be transmitted, lsb to msb. matrix orbital LK204-25 35
description this command will perform a single transaction on the 1-wire bus in this order: 1. bus reset. 2. transmit data onto the bus. 3. receive data from the bus. the number of bits to be transmitted and read must be speci?d for this command to be successful. note to determine what functions the device will respond to, consult the devices data sheet. 1-wire flags bit description 7 6 unused 5 (0 for future compatibility) 4 3 add a crc8 to the end of the transmitted data 2 (0 for future compatibility) 1 assume last received byte is a crc8 and validate it 0 reset bus before transaction 1-wire error codes code description 0x00 success 0x01 unknown 1-wire command 0x02 no devices on the bus 0x03 fatal search error remembered no 9 keypad 9.1 introduction the LK204-25 supports up to a 25 key, matrix style, keypad and may be con?ured to allow key presses to be automatically transmitted via rs-232 or polled through i 2 c. the LK204-25 also allows for auto- repeating key presses, and remapping of all keypad character codes. the connector is not keyed so the keypad will probably plug in either of two ways. the display will not be damaged by reversing the connector. however, the keypad will generate a different ascii character mapping for each position. if the connector has fewer than 10 pins it should be centered on the display matrix orbital LK204-25 36
connector. the keypad is scanned whenever a key is pressed;there is no continuous key scan. this means that key presses are dealt with immediately without any appreciable latency. this also prevents electrical noise which is often caused by continuous key scans. note please note that keypads may be laid out in a different pattern. if this is the case, the user will need to interpret the key codes differently. also included are two extra pins on each end of the connector to be used for ground strapping. this can be used in conjunction with your keypad if a ground strap connection is required or if a common ground connection is needed. 9.1.1 i2c interface the keypad is read by i2c master read. in short, this means that a read of the module will always return the ?st unread key press. a read is initiated by writing to the module with its base address plus 1, then clocking the modules return byte after the module releases the sda line. much more detail on this basic i2c function can be found in the i2c speci?ation by phillips. 9.1.2 rs232 interface by default on any press of a key, the module will immediately send out the key code at the selected baud rate. this behavior can be modi?d using commands found in the next section. 9.2 auto transmit key presses on syntax hexadecimal 0xfe 0x41 decimal 254 65 ascii 254 a description in this mode, all key presses are sent immediately to the host system without the use of the poll keypad command. this is the default mode on power up. note this command is not available in i2c. remembered yes default on 9.3 auto transmit key presses off matrix orbital LK204-25 37
syntax hexadecimal 0xfe 0x4f decimal 254 79 ascii 254 ? description in this mode, up to 10 key presses are buffered until the unit is polled by the host system, via the poll keypad command 254 38. issuing this command places the unit in polled mode. note this command is not available in i2c. remembered yes 9.4 poll key press syntax hexadecimal 0xfe 0x26 decimal 254 38 ascii 254 ? description this command returns any buffered key presses via the rs-232 interface. the host system must be set up to receive key codes. when the display receives this command, it will immediately return any buffered key presses which may have not been read already. if there is more than one key press buffered, then the high order bit (msb) of the returned key code will be set (1). if this is the only buffered key press, then the msb will be cleared (0). if there are no buffered key presses, then the returned code will be 0x00. please note that to make use of this command, the auto transmit key presses mode should be off. note this command is not available in i2c. to read keys in i2c mode, one just needs to address the module and read a byte. no preceding commands are necessary. if there are no keys pressed the read will result in a 0x00. remembered no 9.5 clear key buffer syntax hexadecimal 0xfe 0x45 decimal 254 69 ascii 254 ? matrix orbital LK204-25 38
description this command clears any unread key presses. in a menu application, if the user presses a key which changes the menu context, any following key presses may be inaccurate and can be cleared out of the buffer between menu changes to prevent jumping around the menu tree. it may also be used, in effect, to reset the keypad in case the host application resets for whatever reason. remembered no 9.6 set debounce time syntax hexadecimal 0xfe 0x55 [time] decimal 254 85 [time] ascii 254 ? [time] parameters parameter length description time 1 debounce time in increments of 6.554ms (0 - 255). description this command sets the time between key press and key read. all key types with the exception of latched piezo switches will ?ounce for a varying time, depending on their physical characteristics. the [time] value is in increments of 6.554ms. the default debounce time for the module is 8 (about 52ms), which is adequate for most membrane keypads. remembered yes default 8 9.7 set auto repeat mode syntax hexadecimal 0xfe 0x7e [mode] decimal 254 126 [mode] ascii 254 ? [mode] parameters parameter length description mode 1 auto repeat mode (0: resend key , 1: key up/down) matrix orbital LK204-25 39
description two auto repeat modes are available and are set via the same command: ? resend key mode: 0x00 ? key up/down mode: 0x01 resend key mode this mode is similar to the action of a keyboard on a pc. in this mode, when a key is held down, the key code is transmitted immediately followed by a 1/2 second delay. after this delay, key codes will be sent via the rs-232 interface at a rate of about 5 codes per second. this mode has no effect if polling or if using the i 2 c interface. key up/down mode this mode may be used when the typematic parameters of the ?esend key code mode are unacceptable or if the unit is being operated in polled mode. the host system detects the press of a key and simulates an auto repeat inside the host system until the key release is detected. in this mode, when a key is held down, the key code is transmitted immediately and no other codes will be sent until the key is released. on the release of the key, the key release code transmitted will be a value equal to the key down code plus 20 hex. remembered yes examples when the key code associated with key ? (0x50) is pressed, the release code is ? (0x70). in rs-232 polled mode or via the i 2 c, the ?ey down / key up codes are used; however, the user should be careful of timing details. if the poll rate is slower than the simulated auto-repeat it is possible that polling for a key up code will be delayed long enough for an unwanted key repeat to be generated. 9.8 auto repeat mode off syntax hexadecimal 0xfe 0x60 decimal 254 96 ascii 254 description this command turns auto repeat mode off. see set auto repeat mode. remembered no 9.9 assign keypad codes syntax hexadecimal 0xfe 0xd5 [kdown] [kup] decimal 254 213 [kdown] [kup] matrix orbital LK204-25 40
parameters parameter length description kdown 25 key down codes kup 25 key up codes description this command will allow you to reassign the key codes that correspond to the key presses on the matrix style key pad. the ?st 25 bytes that are transmitted will be used for the key down codes and the next 25 bytes that are transmitted will be used for the key up codes. key down 1 2 3 4 5 1 a b c d e 2 f g h i j 3 k l m n o 4 p q r s t 5 u v w x y key up 1 2 3 4 5 1 a b c d e 2 f g h i j 3 k l m n o 4 p q r s t 5 u v w x y remembered always 10 display functions 10.1 introduction the LK204-25 employs software controlled display settings, which allow for control over, clearing the screen, changing the brightness and contrast or setting timers for turning it on or off. the combination of these allow you complete software control over your displays appearance. 10.2 display on syntax hexadecimal 0xfe 0x42 [min] decimal 254 66 [min] ascii 254 ? [min] parameters parameter length description min 1 minutes before turning the display on (0 to 100). description this command turns the display on after the [minutes] timer has expired, with a one-hundred minute maximum timer. a time of 0 speci?s that the display should turn on immediately and stay on. when this command is sent while the remember function is on, the timer will reset and begin after power up. remembered yes default 0 matrix orbital LK204-25 41
10.3 display off syntax hexadecimal 0xfe 0x46 decimal 254 70 ascii 254 ? description this command turns the display off immediately. the display will remain off until a ?isplay on command has been received. remembered yes 10.4 set brightness syntax hexadecimal 0xfe 0x99 [brightness] decimal 254 153 [brightness] parameters parameter length description brightness 1 display brightness setting (0 to 255). description this command sets the display [brightness]. if the remember function is on, this command acts the same as ?et and save brightness? remembered yes default 255 10.5 set and save brightness syntax hexadecimal 0xfe 0x98 [brightness] decimal 254 152 [brightness] parameters parameter length description brightness 1 backlight setting (0 to 255). description this command sets and saves the display [brightness] as default. remembered always 10.6 set contrast syntax hexadecimal 0xfe 0x50 [contrast] decimal 254 80 [contrast] ascii 254 ? [contrast] parameters parameter length description contrast 1 contrast value (0 to 255). matrix orbital LK204-25 42
description this command sets the displays contrast to [contrast], where [contrast] is a value between 0x00 and 0xff (between 0 to 255). lower values cause ?n elements in the display area to appear lighter, while higher values cause ?n elements to appear darker. lighting and temperature conditions will affect the actual value used for optimal viewing. individual display modules will also differ slightly from each other in appearance. in addition, values for optimal viewing while the display backlight is on may differ from values used when backlight is off. this command does not save the [contrast] value, and is lost after power down; but this command has the option of remembering the settings when issued with the remember function ?n . when this is the case, this command is the same as the set and save contrast command. remembered yes default 128 10.7 set and save contrast syntax hexadecimal 0xfe 0x91 [contrast] decimal 254 145 [contrast] parameters parameter length description contrast 1 contrast value (0 to 255). description this command sets the displays contrast to [contrast], where [contrast] is a value between 0x00 and 0xff (between 0 to 255). lower values cause ?n elements in the display area to appear lighter, while higher values cause ?n elements to appear darker. lighting conditions will affect the actual value used for optimal viewing. individual display modules will also differ slightly from each other in appearance. in addition, values for optimal viewing while the display backlight is on may differ from values used when backlight is off. note this command saves the [contrast] value so that it is not lost after power down. remembered yes default 128 11 data security 11.1 introduction ensuring that your LK204-25 displays exactly what you want it to can be the difference between a projects success and failure. this is why we incorporate features such as data lock into the LK204-25 with matrix orbital LK204-25 43
this new feature you now are in control over of how and when settings will be changed so there is no need to worry about the module acting exactly like you expected it to because all the settings may be locked and remembered for the next power up. 11.2 set remember syntax hexadecimal 0xfe 0x93 [switch] decimal 254 147 [switch] parameters parameter length description switch 1 0: do not remember, 1: remember description this command allows you to switch the remember function on and off. to use the remember function, set remember to on, then set all of the settings that you wish to save, settings that are listed as ?emember: yes support being saved into the non-volatile memory. after you have set all of the commands that you wish to save, you may then cycle the power and check the display settings to ensure that all the settings have been saved. if you wish to use remember again after cycling the power, you must set it to on again. notes ? writing to non-volatile memory is time consuming and slows down the operation of the display. ? non-volatile memory has a ?rite limit and may only be changed approximately 100,000 times. remembered no default do not remember 11.3 data lock syntax hexadecimal 0xfe 0xca 0xf5 0xa0 [level] decimal 254 202 245 160 [level] parameters parameter length description level 1 sets the data lock level matrix orbital LK204-25 44
description data lock, originally known as paranoia, allows you to lock the module from displaying information, as well as enables the protection of the ?esystem and module settings. each bit corresponds corresponds to a different lock level, while sending a zero will unlock your display as the following tables explains: bit data lock level description 0 unlock sending a zero will cause the display to unlock. (0) 1-2 reserved these bits are used as place holders and should not be omitted. (0000) 3 communication speed lock locks the baud rate and i2c slave address 4 setting lock locks the display settings such as backlight, contrast and gpo settings. (10000) 5 reserved for graphical displays. (000000) 6 command lock locks all commands but the data lock command. (1000000) 7 display lock locks the module from displaying any new infor- mation. (10000000) notes ? sending a new data lock level will override the previous data lock level. ? data lock levels may be combined. remembered always default 0 examples hex dec binary description 0x00 0 0 unlock 0x50 80 01010000 setting and command lock 11.4 set and save data lock syntax hexadecimal 0xfe 0xcb 0xf5 0xa0 [level] decimal 254 203 245 160 [level] matrix orbital LK204-25 45
parameters parameter length description level 1 sets the data lock level description this command will set and save the data lock level. see the data lock section for more information. remembered always default 0 12 miscellaneous 12.1 introduction this chapter covers the ?eport version number and ?ead module type commands. these commands can be particularly useful to ?d out more information about the display module before contacting technical support. 12.2 read version number syntax hexadecimal 0xfe 0x36 decimal 254 54 ascii 254 ? description this command will return a byte representing the version of the module, see the following table as an example: hex value version number 0x10 version 1.0 0x20 version 2.0 0x42 version 4.2 remembered no 12.3 read module type syntax hexadecimal 0xfe 0x37 decimal 254 55 ascii 254 ? matrix orbital LK204-25 46
description this command will return a hex value corresponding to the the model number of the module see the following table: hex product id hex product id 1 lcd0821 36 lk202-24-usb 2 lcd2021 37 vk202-24-usb 5 lcd2041 38 lk204-24-usb 6 lcd4021 39 vk204-24-usb 7 lcd4041 3a pk162-12 8 lk202-25 3b vk162-12 9 LK204-25 3c mos-ap-162a a lk404-55 3d pk202-25 b vfd2021 3e mos-al-162a c vfd2041 40 mos-av-202a d vfd4021 41 mos-ap-202a e vk202-25 42 pk202-24-usb f vk204-25 43 mos-al-082 10 glc12232 44 mos-al-204 13 glc24064 45 mos-av-204 15 glk24064-25 46 mos-al-402 22 glk12232-25-wbl 47 mos-av-402 24 glk12232-25-sm 48 lk082-12 26 glk24064-16-1u 49 vk402-12 27 glk19264-7-1u 4a vk404-55 28 glk12232-16-wbl 4b lk402-25 29 glk12232-16-sm 4c vk402-25 31 lk404-at 4d pk204-25 32 mos-av-162a 72 glk240128-25 33 lk402-12 73 lk404-25 34 lk162-12 74 vk404-25 35 LK204-25pc remembered no 13 command summary 13.1 communications description syntax page changing the i 2 c slave address hexadecimal 0xfe 0x33 [adr] decimal 254 51 [adr] ascii 254 ? [adr] 18 changing the baud rate hexadecimal 0xfe 0x39 [speed] decimal 254 57 [speed] ascii 254 ? [speed] 18 matrix orbital LK204-25 47
description syntax page setting a non-standard baud rate hexadecimal 0xfe 0xa4 [speed] decimal 254 164 [speed] 19 13.2 text description syntax page auto scroll on hexadecimal 0xfe 0x51 decimal 254 81 ascii 254 ? 21 auto scroll off hexadecimal 0xfe 0x52 decimal 254 82 ascii 254 ? 22 clear screen hexadecimal 0xfe 0x58 decimal 254 88 ascii 254 ? 22 changing the startup screen hexadecimal 0xfe 0x40 [chars] decimal 254 64 [chars] ascii 254 ? [chars] 22 set auto line wrap on hexadecimal 0xfe 0x43 decimal 254 67 ascii 254 ? 23 set auto line wrap off hexadecimal 0xfe 0x44 decimal 254 68 ascii 254 ? 23 set cursor position hexadecimal 0xfe 0x47 [col] [row] decimal 254 71 [col] [row] ascii 254 ? [col] [row] 23 go home hexadecimal 0xfe 0x48 decimal 254 72 ascii 254 ? 24 move cursor back hexadecimal 0xfe 0x4c decimal 254 76 ascii 254 ? 24 move cursor forward hexadecimal 0xfe 0x4d decimal 254 77 ascii 254 ? 24 underline cursor on hexadecimal 0xfe 0x4a decimal 254 74 ascii 254 ? 25 underline cursor off hexadecimal 0xfe 0x4b decimal 254 75 ascii 254 ? 25 blinking block cursor on hexadecimal 0xfe 0x53 decimal 254 83 ascii 254 ? 25 matrix orbital LK204-25 48
description syntax page blinking block cursor off hexadecimal 0xfe 0x54 decimal 254 84 ascii 254 ? 25 13.3 special characters description syntax page creating a custom character hexadecimal 0xfe 0x4e [refid] [data] decimal 254 78 [refid] [data] ascii 254 ? [refid] [data] 26 saving custom characters hexadecimal 0xfe 0xc1 [bank] [id] [data] decimal 254 193 [bank] [id] [data] 27 loading custom characters hexadecimal 0xfe 0xc0 [bank] decimal 254 192 [bank] 28 save startup screen custom characters hexadecimal 0xfe 0xc2 [refid] [data] decimal 254 194 [refid] [data] 28 initialize medium number hexadecimal 0xfe 0x6d decimal 254 109 ascii 254 ? 29 place medium numbers hexadecimal 0xfe 0x6f [row] [col] [digit] decimal 254 111 [row] [col] [digit] ascii 254 ? [row] [col] [digit] 29 initialize large numbers hexadecimal 0xfe 0x6e decimal 254 110 ascii 254 ? 29 place large number hexadecimal 0xfe 0x23 [col] [digit] decimal 254 35 [col] [digit] ascii 254 ? [col] [digit] 30 initialize horizontal bar hexadecimal 0xfe 0x68 decimal 254 104 ascii 254 ? 30 place horizontal bar graph hexadecimal 0xfe 0x7c [col] [row] [dir] [length] decimal 254 124 [col] [row] [dir] [length] ascii 254 ? [col] [row] [dir] [length] 30 initialize narrow vertical bar hexadecimal 0xfe 0x73 decimal 254 115 ascii 254 ? 31 initialize wide vertical bar hexadecimal 0xfe 0x76 decimal 254 118 ascii 254 ? 31 place vertical bar hexadecimal 0xfe 0x3d [column] [length] decimal 254 61 [column] [length] ascii 254 ? [column] [length] 32 matrix orbital LK204-25 49
13.4 general purpose output description syntax page general purpose output off hexadecimal 0xfe 0x56 [num] decimal 254 86 [num] ascii 254 ? [num] 32 general purpose output on hexadecimal 0xfe 0x57 [num] decimal 254 87 [num] ascii 254 ? [num] 33 set startup gpo state hexadecimal 0xfe 0xc3 [num] [state] decimal 254 195 [num] [state] 33 13.5 dallas 1-wire description syntax page search for a 1-wire device hexadecimal 0xfe 0xc8 0x2 decimal 254 200 2 34 dallas 1-wire transaction hexadecimal 0xfe 0xc8 0x1 [?gs] [sndbits] [rcvbits] [data] decimal 254 200 1 [?gs] [sndbits] [rcvbits] [data] 35 13.6 keypad description syntax page auto transmit key presses on hexadecimal 0xfe 0x41 decimal 254 65 ascii 254 a 37 auto transmit key presses off hexadecimal 0xfe 0x4f decimal 254 79 ascii 254 ? 37 poll key press hexadecimal 0xfe 0x26 decimal 254 38 ascii 254 ? 38 clear key buffer hexadecimal 0xfe 0x45 decimal 254 69 ascii 254 ? 38 set debounce time hexadecimal 0xfe 0x55 [time] decimal 254 85 [time] ascii 254 ? [time] 39 set auto repeat mode hexadecimal 0xfe 0x7e [mode] decimal 254 126 [mode] ascii 254 ? [mode] 39 matrix orbital LK204-25 50
description syntax page auto repeat mode off hexadecimal 0xfe 0x60 decimal 254 96 ascii 254 40 assign keypad codes hexadecimal 0xfe 0xd5 [kdown] [kup] decimal 254 213 [kdown] [kup] 40 13.7 display functions description syntax page display on hexadecimal 0xfe 0x42 [min] decimal 254 66 [min] ascii 254 ? [min] 41 display off hexadecimal 0xfe 0x46 decimal 254 70 ascii 254 ? 42 set brightness hexadecimal 0xfe 0x99 [brightness] decimal 254 153 [brightness] 42 set and save brightness hexadecimal 0xfe 0x98 [brightness] decimal 254 152 [brightness] 42 set contrast hexadecimal 0xfe 0x50 [contrast] decimal 254 80 [contrast] ascii 254 ? [contrast] 42 set and save contrast hexadecimal 0xfe 0x91 [contrast] decimal 254 145 [contrast] 43 13.8 data security description syntax page set remember hexadecimal 0xfe 0x93 [switch] decimal 254 147 [switch] 44 data lock hexadecimal 0xfe 0xca 0xf5 0xa0 [level] decimal 254 202 245 160 [level] 44 set and save data lock hexadecimal 0xfe 0xcb 0xf5 0xa0 [level] decimal 254 203 245 160 [level] 45 13.9 miscellaneous description syntax page read version number hexadecimal 0xfe 0x36 decimal 254 54 ascii 254 ? 46 matrix orbital LK204-25 51
description syntax page read module type hexadecimal 0xfe 0x37 decimal 254 55 ascii 254 ? 46 13.10 command by number command description page hex dec ascii 0x23 35 ? place large number 30 0x26 38 ? poll key press 38 0x33 51 ? changing the i 2 c slave address 18 0x36 54 ? read version number 46 0x37 55 ? read module type 46 0x39 57 ? changing the baud rate 18 0x3d 61 ? place vertical bar 32 0x40 64 ? changing the startup screen 22 0x41 65 a auto transmit key presses on 37 0x42 66 ? display on 41 0x43 67 ? set auto line wrap on 23 0x44 68 ? set auto line wrap off 23 0x45 69 ? clear key buffer 38 0x46 70 ? display off 42 0x47 71 ? set cursor position 23 0x48 72 ? go home 24 0x4a 74 ? underline cursor on 25 0x4b 75 ? underline cursor off 25 0x4c 76 ? move cursor back 24 0x4d 77 ? move cursor forward 24 0x4e 78 ? creating a custom character 26 0x4f 79 ? auto transmit key presses off 37 0x50 80 ? set contrast 42 0x51 81 ? auto scroll on 21 0x52 82 ? auto scroll off 22 0x53 83 ? blinking block cursor on 25 0x54 84 ? blinking block cursor off 25 0x55 85 ? set debounce time 39 0x56 86 ? general purpose output off 32 0x57 87 ? general purpose output on 33 0x58 88 ? clear screen 22 0x60 96 auto repeat mode off 40 0x68 104 ? initialize horizontal bar 30 0x6d 109 ? initialize medium number 29 0x6e 110 ? initialize large numbers 29 0x6f 111 ? place medium numbers 29 matrix orbital LK204-25 52
command description page hex dec ascii 0x73 115 ? initialize narrow vertical bar 31 0x76 118 ? initialize wide vertical bar 31 0x7c 124 ? place horizontal bar graph 30 0x7e 126 ? set auto repeat mode 39 0x91 145 set and save contrast 43 0x93 147 set remember 44 0x98 152 set and save brightness 42 0x99 153 set brightness 42 0xa4 164 setting a non-standard baud rate 19 0xc0 192 loading custom characters 28 0xc1 193 saving custom characters 27 0xc2 194 save startup screen custom characters 28 0xc3 195 set startup gpo state 33 0xc8 200 dallas 1-wire transaction 35 0xca 202 data lock 44 14 appendix 14.1 speci?ations 14.1.1 environmental table 67: environmental speci?ations standard temperature extended temperature operating temperature 0 ? c to +50 ? c -20 ? c to +70 ? c storage temperature -20 ? cto+70 ? c -30 ? c to +80 ? c operating relative humidity 90% max non-condensing vibration (operating) 4.9 m/s 2 xyz directions vibration (non-operating) 19.6 m/s 2 xyz directions shock (operating) 29.4 m/s 2 xyz directions shock (non-operating) 490 m/s 2 xyz directions matrix orbital LK204-25 53
14.1.2 electrical table 68: electrical speci?ations standard wide voltage (v) wide voltage with ef?cient switching power supply (vpt) supply voltage +5vdc 0.25v +9v to +15v +9v to +35v backlight on 110 ma typical backlight off supply 40 ma 14.2 optical characteristics table 69: optical characteristics character x lines 20 columns x 2 rows module size 98.00 mm x 60.00 mm x 30.63 mm character size 3.20 mm x 5.55 mm display size 76.30 mm x 25.00 mm led backlight life 100, 000 hours typical matrix orbital LK204-25 54
14.3 physical layout figure 23: physical diagram matrix orbital LK204-25 55
14.4 de?itions e extended temperature (-20c to 70c) vpt wide voltage with ef?ient switching power supply (+9 to +35vdc) v wide voltage (+9 to +15vdc) gw grey text / white background wb white text / blue background r inverse red iy inverse yellow msb most signi?ant byte lsb least signi?ant byte 14.5 contacting matrix orbital telephone sales and support: 1(403)229-2737 on the web sales: http://www.matrixorbital.com support: http://www.matrixorbital.ca forums: http://www.lcdforums.com matrix orbital LK204-25 56


▲Up To Search▲   

 
Price & Availability of LK204-25

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X